//财务
import Layout from '@/views/layout/Layout'
import Three from '@/views/layout/Three'

const finance = {
  path: '/finance',
  name: 'finance',
  component: Layout,
  redirect: '/finance/refund',
  key: 'finance',
  meta: {
    title: '财务'
  },
  children: [{
    path: 'refund',
    name: 'refund',
    key: 'refund',
    component: Three,
    meta: {
      title: '退款'
    },
    children: [
      {
        path: 'courseRefund',
        name: 'courseRefund',
        key: 'courseRefund',
        component: () => import('@/views/finance/refund/courseRefund/list'),
        meta: {
          title: '课程退款订单'
        }
      },{
        path: 'handleCourseRefund',
        name: 'handleCourseRefund',
        key: 'handleCourseRefund',
        hidden:true,
        component: () => import('@/views/finance/refund/courseRefund/detail'),
        meta: {
          title: '课程退款订单处理'
        }
      },{
        path: 'goodsRefund',
        name: 'goodsRefund',
        key: 'goodsRefund',
        component: () => import('@/views/finance/refund/goodsRefund/list'),
        meta: {
          title: '商品退款订单'
        }
      }, {
        path: 'withdrawalApproval',
        name: 'withdrawalApproval',
        key: 'withdrawalApproval',
        component: () => import('@/views/finance/refund/withdrawalApproval/list'),
        meta: {
          title: '代理提现审批'
        }
      }
    ]
  }]
}

export default finance
